﻿<Grid x:Class="LFSRecord2.View.TimelineStructures.ParentLayerSelectionControl"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:lfsconv="clr-namespace:LFSRecord2.View.Converters"
      mc:Ignorable="d" 
      d:DesignWidth="90" d:DesignHeight="13"
      Width="90" Height="13"
      Background="Transparent" 
      MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseRightButtonDown="Grid_MouseRightButtonDown"
      Loaded="Grid_Loaded">
    <Grid.Resources>
        <lfsconv:PropertyValueBrushConverter x:Key="propertyValueBrushConverter" />
        <BitmapImage x:Key="ColExpanded" UriSource="pack://application:,,,/data/bitmaps/icons/CollapseIconExpanded.png" />
    </Grid.Resources>
    <Border BorderBrush="{Binding HasParentLayer, Converter={StaticResource propertyValueBrushConverter}, ConverterParameter=Background}" 
            Background="#FF6A6A6A" 
            BorderThickness="1" 
            CornerRadius="3">
        <Grid>
            <Label Name="ParentNameLabel" Padding="2,0,0,0" Margin="0,-2,0,0" HorizontalAlignment="Left" Foreground="LightGray" FontSize="10" IsHitTestVisible="False">Parent (none)</Label>
            <Image Source="{StaticResource ColExpanded}" Stretch="None" HorizontalAlignment="Right" Margin="0,1,3,0" IsHitTestVisible="False" />
        </Grid>
    </Border>
</Grid>
